import { _decorator, Component, Node, Event } from 'cc';
import EventManager from '../../Runtime/EventManager';
import { CONTROLLER_ENUM, EVENT_TYPE } from '../../Enums';
const { ccclass, property } = _decorator;

@ccclass('ControllerManager')
export class ControllerManager extends Component {
    handleCtrl(event: Event, type: string) {
        EventManager.Instance.emit(EVENT_TYPE.PLAYER_CTRL, type as CONTROLLER_ENUM);
    }
}

